  <div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">
    <div>
        <script type="text/html" id='form-tpl' charset="utf-8">
            {{# layui.each(d.list, function(index, item) { }}
                {{# if(item.type == 'hidden') { }}
                    <input type="hidden" name="{{item.name}}" value="{{item.value || ''}}" >
                {{# } else if(item.type == 'text') { }}
                    <div class="layui-form-item">
                      <label class="layui-form-label">{{item.title}}</label>
                      <div class="layui-input-block">
                          <input type="text" name="{{item.name}}" value="{{item.value || ''}}" lay-verify="{{item.verify || ''}}" placeholder="请输入{{item.tips || item.title}}" {{!item.disabled || 'disabled="disabled"'}} autocomplete="off" class="layui-input">
                          {{# if(typeof item.tips != 'undefined') {}}
                              <span style='color:red;margin-top:10px;'>{{item.extra}}</span>
                          {{# } }}
                          {{# if(typeof item.preview != 'undefined') {}}
                              <span style='margin-top:10px;'><a style='color:#1E9FFF' href="{{item.preview.url}}" target="_blank">{{item.preview.text}}</a></span>
                          {{# } }}
                      </div>
                    </div>
                {{# } else if(item.type == 'password') { }}
                    <div class="layui-form-item">
                      <label class="layui-form-label">{{item.title}}</label>
                      <div class="layui-input-block">
                          <input type="password" name="{{item.name}}" value="{{item.value || ''}}" lay-verify="{{item.verify || ''}}" placeholder="请输入{{item.tips || item.title}}" autocomplete="off" class="layui-input">
                          {{# if(typeof item.tips != 'undefined') {}}
                              <span style='color:red;margin-top:10px;'>{{item.extra}}</span>
                          {{# } }}
                      </div>
                    </div>
                {{# } else if(item.type == 'select') { }}
                    <div class="layui-form-item">
                      <label class="layui-form-label">{{item.title }}</label>
                      <div class="layui-input-block">
                        <select name="{{item.name}}" lay-filter="{{item.name}}" lay-verify="{{item.verify}}"  {{ !item.disabled || "disabled='disabled'" }} lay-search>
                          <option value="">请选择</option>
                          {{# layui.each(item.list, function(index, row) { }}
                              <option {{#if(typeof item.selected != 'undefined' && item.selected == row.value) { }} selected="selected"  {{# } }}value="{{row.value}}">{{row.title}}</option>
                          {{# }) }}
                        </select>
                      </div>
                    </div>
                {{# } else if(item.type == 'mutiple') { }}
                       <div class="layui-form-item mutiple-item {{item.class || ''}}">
                           {{# if(item.label) {  }}
                               <label class="layui-form-label">{{item.label}}</label>
                           {{# } }}
                           {{# layui.each(item.list, function(index, row) { }}
                               <label class="layui-form-label">{{row.title }}</label>
                               {{# if(row.type == 'select') { }}
                                   <div class="layui-input-inline" >
                                       <select name="{{row.name}}" lay-filter="{{row.filter || row.name}}" lay-verify="{{row.verify}}" lay-search>
                                           <option value="">请选择</option>
                                           {{# layui.each(row.list, function(index, row2) {  }}
                                               <option {{#if (typeof row2.selected != 'undefined' && row2.selected == row2.value) { }} selected="selected"  {{# } }} value="{{row2.value}}">{{row2.title}}</option>
                                           {{# });}}
                                       </select>
                                   </div>
                               {{# } if(row.type == 'text') { }}
                                   <div class="layui-input-inline" >
                                       <input type="text" name="{{row.name}}" value="{{row.value || ''}}" lay-verify="{{row.verify || ''}}" placeholder="{{row.tips || row.title}}" autocomplete="off" {{#if(row.disabled) {  }}disabled="disabled"{{# } }} class="layui-input">
                                   </div>
                               {{# } }}
                           {{# }); }}
                           {{# if(typeof item.clone == 'undefined' || item.clone) {  }}
                               <div class="layui-input-inline">
                                    <button type='button' style="margin-left:20px; margin-top:4px; {{!item.hidden || 'display:none;'}}" class="layui-btn layui-btn-normal layui-btn-sm clone-btn"><i class="layui-icon"></i></button>
                                    <button type='button' style="margin-left:10px; margin-top:4px; {{!item.hidden || 'display:none;'}}" class="layui-btn layui-btn-disabled layui-btn-sm remove-btn"><i class="layui-icon"></i></button>
                               </div>
                           {{#  } }}
                       </div>
                {{# } else if(item.type == 'checkbox') { }}
                  <div class="layui-form-item">
                    <label class="layui-form-label">{{item.title}}</label>
                    <div class="layui-input-block">
                      {{# layui.each(item.list, function(index, row) { }}
                          <input type="checkbox" class="{{item.class || ''}}" name="{{item.name}}" title="{{row.title}}" value="{{row.value}}">
                      {{# }); }}
                    </div>
                  </div>
                {{# } else if(item.type == 'textarea') { }}
                    <div class="layui-form-item">
                      <label class="layui-form-label">{{item.title}}</label>
                      <div class="layui-input-block">
                          <textarea rows='8' style='width:100%' name="{{item.name}}" lay-verify="{{item.verify}}" style="width: 400px; height: 150px;" autocomplete="off" class="layui-textarea">{{item.value || ''}}</textarea>
                      </div>
                    </div>
                {{# } else if(item.type == 'image') { }}
                    <div class="layui-form-item" >
                      <label class="layui-form-label">{{item.title}}</label>
                      <div class="layui-input-block">
                        <button type="button" class="layui-btn layui-btn-normal layui-btn-lg" id="upload-{{item.name}}">
                            <i class="layui-icon">&#xe67c;</i>上传
                        </button>
                        <button type="button" class="layui-btn layui-btn-disabled layui-btn-lg" id="preview-{{item.name}}">
                            <i class="layui-icon layui-icon-picture"></i>预览
                        </button>
                        <input type='hidden' name='{{item.name}}' value='{{item.value || ""}}'>
                      </div>
                    </div>
                {{# } else if(item.type == 'file') { }}
                    <div class="layui-form-item" >
                      <label class="layui-form-label">{{item.title}}</label>
                      <div class="layui-input-block">
                        <button type="button" class="layui-btn layui-btn-warm layui-btn-lg upload-{{item.name}}" id="upload-{{item.name}}">
                            <i class="layui-icon">&#xe67c;</i>点击上传
                        </button>
                        <input type='hidden' name='{{item.name}}' lay-verify="{{item.verify || ''}}" value='{{item.value || ""}}'>
                        {{# if(typeof item.download != 'undefined') {}}
                            <button type="button" class="layui-btn layui-bg-cyan layui-btn-lg download-{{item.name}}" data-url="{{item.download}}" id="download-{{item.name}}">
                                <i class="layui-icon layui-icon-download-circle"></i>示例文件
                            </button>
                        {{# } }}
                        {{# if(typeof item.tips != 'undefined') {}}
                            <span style='color:red;margin-top:10px;'>{{item.extra}}</span>
                        {{# } }}
                      </div>
                    </div>
                {{# } else if(item.type == 'radio') { }}
                  <div class="layui-form-item">
                    <label class="layui-form-label">{{item.title}}</label>
                    <div class="layui-input-block">
                      {{# layui.each(item.list, function(index, row) { }}
                          <input type="radio" {{# if((typeof item.checked != 'undefined' && item.checked == '' && index == 0) || (typeof item.checked == 'undefined' && index == 0) || (typeof item.checked != 'undefined' && item.checked == row.value)) {  }} checked {{# } }} name="{{item.name}}" value="{{row.value}}" title="{{row.title}}" lay-filter="{{item.name}}">
                      {{#  });}}
                    </div>
                  </div>
                {{# } }}
            {{# });}}
        </script>
    </div>
    <div class="">
        <script type="text/html" id='submit-tpl' charset="utf-8">
          {{# if(typeof d.submit == 'undefined' || d.submit == true) { }}
              <div class="layui-input-block">
                  <button class="layui-btn layui-btn-normal" lay-submit lay-filter="layuiadmin-app-form-submit" id="layuiadmin-app-form-submit">提交</button>
              </div>
          {{# } }}
        </script>
    </div>
  </div>
